#include <iostream>
using namespace std;

class A
{
public:
    A(int a, int b)
    :_a(a), _b(b)
    {
        cout << "A constructor" << endl;
    }
    virtual ~A() 
    {
        cout << "A destructor" << endl;
    }
    int _a;
    int _b;
};

class B 
{
public:
    B(int a, int b)
    {
        cout << "B constructor" << endl;
    }
    virtual ~B() 
    {
        cout << "B destructor" << endl;
    }

    A _a;
};


int main() 
{
    B b(1, 2);
    std::cout << b._a._a << std::endl;
    std::cout << b._a._b << std::endl;
}
